<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>仪表板 - 员工信息管理系统</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/style.css">
</head>
<body>
<div class="container">
    <header class="header">
        <h1>员工信息管理系统</h1>
        <div class="user-info">
            欢迎, ${user.username} |
            <a href="${pageContext.request.contextPath}/logout">退出</a>
        </div>
    </header>

    <nav class="sidebar">
        <ul>
            <li><a href="${pageContext.request.contextPath}/dashboard" class="active">仪表板</a></li>
            <li><a href="${pageContext.request.contextPath}/employee">员工管理</a></li>
        </ul>
    </nav>

    <main class="main-content">
        <div class="dashboard">
            <h2>系统概览</h2>
            <div class="stats-cards">
                <div class="stat-card">
                    <h3>总员工数</h3>
                    <p class="stat-number">${totalEmployees}</p>
                </div>
            </div>

            <div class="quick-actions">
                <h3>快速操作</h3>
                <div class="action-buttons">
                    <a href="${pageContext.request.contextPath}/employee?action=add" class="btn btn-primary">添加新员工</a>
                    <a href="${pageContext.request.contextPath}/employee" class="btn btn-secondary">查看所有员工</a>
                </div>
            </div>
        </div>
    </main>
</div>
</body>
</html>